//
//  AboutViewController.m
//  moon
//
//  Created by beyself on 16/6/15.
//  Copyright © 2016年 beyself. All rights reserved.
//
#import "Utils.h"
#import "AboutViewController.h"

@interface AboutViewController ()

@end

@implementation AboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"关于我们";
    
    UIButton* bg = [UIButton buttonWithType:UIButtonTypeCustom];
    bg.frame = CGRectMake(0, 0, SCREEN_WIDTH, 100);
    bg.enabled = NO;
    [bg setImage:[UIImage imageNamed:@"ic_about"] forState:UIControlStateDisabled];
    [self.view addSubview:bg];
    
    
    bg = [UIButton buttonWithType:UIButtonTypeCustom];
    bg.frame = CGRectMake(0, 80, SCREEN_WIDTH, 100);
    bg.enabled = NO;
    [bg setImage:[UIImage imageNamed:@"ic_qr.jpg"] forState:UIControlStateDisabled];
    [self.view addSubview:bg];
    
    UILabel* label = [[UILabel alloc] init];
    label.frame = CGRectMake(10, 175, SCREEN_WIDTH - 20, 44);
    label.textColor = BLACK;
    label.font = [UIFont fontWithName:@"Helvetica-Bold" size:12];
    label.text = @"扫描二维码，关注月亮巴巴微信公众号！";
    label.numberOfLines = 0;
    label.textAlignment = NSTextAlignmentCenter;
    label.lineBreakMode = NSLineBreakByWordWrapping;
    [self.view addSubview:label];
    
    label = [[UILabel alloc] init];
    label.frame = CGRectMake(10, SCREEN_HEIGHT - 44, SCREEN_WIDTH - 20, 44);
    label.textColor = GRAY;
    label.font = FONT_10;
    label.text = @"月亮巴巴软件许可及服务协议，湘计华湘公司版权所有\nCopyright@2014-2016 XiangJiHuaXiang All Rights Reserved";
    label.numberOfLines = 0;
    label.textAlignment = NSTextAlignmentCenter;
    label.lineBreakMode = NSLineBreakByWordWrapping;
    [self.view addSubview:label];
    
    label = [[UILabel alloc] init];
    label.frame = CGRectMake(10, SCREEN_HEIGHT - 140, SCREEN_WIDTH - 20, 64);
    label.textColor = BLACK;
    label.font = [UIFont fontWithName:@"Helvetica-Bold" size:12];
    label.text = @"客服：800-8786995\n\n邮箱：yueliangbaba@126.com";
    label.numberOfLines = 0;
    label.textAlignment = NSTextAlignmentCenter;
    label.lineBreakMode = NSLineBreakByWordWrapping;
    [self.view addSubview:label];
    
    /*
    UIImageView* imageview = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"AppIcon60x60"]];
    imageview.frame = CGRectMake((SCREEN_WIDTH - 60)/2, 80, 60, 60);
    [self.view addSubview:imageview];
    
    UILabel* label = [[UILabel alloc] init];
    label.frame = CGRectMake(10, 160, SCREEN_WIDTH - 20, 44);
    label.textColor = GRAY;
    label.font = FONT_12;
    label.text = @"月亮巴巴软件许可及服务协议，湘计华湘公司版权所有\nCopyright@2014-2016 XiangJiHuaXiang All Rights Reserved";
    label.numberOfLines = 0;
    label.textAlignment = NSTextAlignmentCenter;
    label.lineBreakMode = NSLineBreakByWordWrapping;
    [self.view addSubview:label];*/
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
@end
